aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/payment/[id]/bump-estimate
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-03-02 22:50:42 -0800
committerAdam Soltys <[email protected]>2026-03-02 22:50:42 -0800
commit97fffca3e63e2edb4818305abdbcbb8953344aa3 (patch)
tree2791ae61b72b995dea8c2c0e3b8ead3cd0965a80 /src/routes/(app)/payment/[id]/bump-estimate
parent11d358ad0412b794ecf89b4da9f99ac41ed9c3fe (diff)
downloadcoinos-ui-97fffca3e63e2edb4818305abdbcbb8953344aa3.tar.gz
coinos-ui-97fffca3e63e2edb4818305abdbcbb8953344aa3.zip
fee bumping ui
Diffstat (limited to 'src/routes/(app)/payment/[id]/bump-estimate')
-rw-r--r--src/routes/(app)/payment/[id]/bump-estimate/+server.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/routes/(app)/payment/[id]/bump-estimate/+server.ts b/src/routes/(app)/payment/[id]/bump-estimate/+server.ts
new file mode 100644
index 00000000..dc5a8642
--- /dev/null
+++ b/src/routes/(app)/payment/[id]/bump-estimate/+server.ts
@@ -0,0 +1,12 @@
+import { auth, post } from "$lib/utils";
+import { json, error } from "@sveltejs/kit";
+
+export async function POST({ cookies, request }) {
+ const body = await request.json();
+ try {
+ const res = await post("/bump/estimate", body, auth(cookies));
+ return json(res);
+ } catch (e: any) {
+ error(400, e.message);
+ }
+}